Optimal. Leaf size=313 \[ \frac{\sqrt{3} \tan ^{-1}\left (\frac{\sqrt [3]{a}+2 \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt{3} \sqrt [3]{a}}\right )}{a^{4/3} d}-\frac{\sqrt{3} \tan ^{-1}\left (\frac{\sqrt [3]{a}+2^{2/3} \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt{3} \sqrt [3]{a}}\right )}{4 \sqrt [3]{2} a^{4/3} d}-\frac{\log (\tan (c+d x))}{2 a^{4/3} d}+\frac{3 \log \left (\sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 a^{4/3} d}-\frac{3 \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{8 \sqrt [3]{2} a^{4/3} d}-\frac{\log (\cos (c+d x))}{8 \sqrt [3]{2} a^{4/3} d}-\frac{i x}{8 \sqrt [3]{2} a^{4/3}}+\frac{9}{4 a d \sqrt [3]{a+i a \tan (c+d x)}}+\frac{3}{8 d (a+i a \tan (c+d x))^{4/3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.596277, antiderivative size = 313, normalized size of antiderivative = 1., number of steps used = 15, number of rules used = 9, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.375, Rules used = {3562, 3479, 3481, 55, 617, 204, 31, 3596, 3599} \[ \frac{\sqrt{3} \tan ^{-1}\left (\frac{\sqrt [3]{a}+2 \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt{3} \sqrt [3]{a}}\right )}{a^{4/3} d}-\frac{\sqrt{3} \tan ^{-1}\left (\frac{\sqrt [3]{a}+2^{2/3} \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt{3} \sqrt [3]{a}}\right )}{4 \sqrt [3]{2} a^{4/3} d}-\frac{\log (\tan (c+d x))}{2 a^{4/3} d}+\frac{3 \log \left (\sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 a^{4/3} d}-\frac{3 \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{8 \sqrt [3]{2} a^{4/3} d}-\frac{\log (\cos (c+d x))}{8 \sqrt [3]{2} a^{4/3} d}-\frac{i x}{8 \sqrt [3]{2} a^{4/3}}+\frac{9}{4 a d \sqrt [3]{a+i a \tan (c+d x)}}+\frac{3}{8 d (a+i a \tan (c+d x))^{4/3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3562
Rule 3479
Rule 3481
Rule 55
Rule 617
Rule 204
Rule 31
Rule 3596
Rule 3599
Rubi steps
\begin{align*} \int \frac{\cot (c+d x)}{(a+i a \tan (c+d x))^{4/3}} \, dx &=i \int \frac{1}{(a+i a \tan (c+d x))^{4/3}} \, dx-\frac{i \int \frac{\cot (c+d x) (i a+a \tan (c+d x))}{(a+i a \tan (c+d x))^{4/3}} \, dx}{a}\\ &=\frac{3}{8 d (a+i a \tan (c+d x))^{4/3}}-\frac{(3 i) \int \frac{\cot (c+d x) \left (\frac{8 i a^2}{3}+\frac{8}{3} a^2 \tan (c+d x)\right )}{\sqrt [3]{a+i a \tan (c+d x)}} \, dx}{8 a^3}+\frac{i \int \frac{1}{\sqrt [3]{a+i a \tan (c+d x)}} \, dx}{2 a}\\ &=\frac{3}{8 d (a+i a \tan (c+d x))^{4/3}}+\frac{9}{4 a d \sqrt [3]{a+i a \tan (c+d x)}}-\frac{(9 i) \int \cot (c+d x) (a+i a \tan (c+d x))^{2/3} \left (\frac{16 i a^3}{9}+\frac{16}{9} a^3 \tan (c+d x)\right ) \, dx}{16 a^5}+\frac{i \int (a+i a \tan (c+d x))^{2/3} \, dx}{4 a^2}\\ &=\frac{3}{8 d (a+i a \tan (c+d x))^{4/3}}+\frac{9}{4 a d \sqrt [3]{a+i a \tan (c+d x)}}+\frac{\operatorname{Subst}\left (\int \frac{1}{(a-x) \sqrt [3]{a+x}} \, dx,x,i a \tan (c+d x)\right )}{4 a d}+\frac{\operatorname{Subst}\left (\int \frac{1}{x \sqrt [3]{a+i a x}} \, dx,x,\tan (c+d x)\right )}{a d}\\ &=-\frac{i x}{8 \sqrt [3]{2} a^{4/3}}-\frac{\log (\cos (c+d x))}{8 \sqrt [3]{2} a^{4/3} d}-\frac{\log (\tan (c+d x))}{2 a^{4/3} d}+\frac{3}{8 d (a+i a \tan (c+d x))^{4/3}}+\frac{9}{4 a d \sqrt [3]{a+i a \tan (c+d x)}}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{a}-x} \, dx,x,\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 a^{4/3} d}+\frac{3 \operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{2} \sqrt [3]{a}-x} \, dx,x,\sqrt [3]{a+i a \tan (c+d x)}\right )}{8 \sqrt [3]{2} a^{4/3} d}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{2^{2/3} a^{2/3}+\sqrt [3]{2} \sqrt [3]{a} x+x^2} \, dx,x,\sqrt [3]{a+i a \tan (c+d x)}\right )}{8 a d}+\frac{3 \operatorname{Subst}\left (\int \frac{1}{a^{2/3}+\sqrt [3]{a} x+x^2} \, dx,x,\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 a d}\\ &=-\frac{i x}{8 \sqrt [3]{2} a^{4/3}}-\frac{\log (\cos (c+d x))}{8 \sqrt [3]{2} a^{4/3} d}-\frac{\log (\tan (c+d x))}{2 a^{4/3} d}+\frac{3 \log \left (\sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 a^{4/3} d}-\frac{3 \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{8 \sqrt [3]{2} a^{4/3} d}+\frac{3}{8 d (a+i a \tan (c+d x))^{4/3}}+\frac{9}{4 a d \sqrt [3]{a+i a \tan (c+d x)}}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1+\frac{2 \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt [3]{a}}\right )}{a^{4/3} d}+\frac{3 \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1+\frac{2^{2/3} \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt [3]{a}}\right )}{4 \sqrt [3]{2} a^{4/3} d}\\ &=-\frac{i x}{8 \sqrt [3]{2} a^{4/3}}+\frac{\sqrt{3} \tan ^{-1}\left (\frac{1+\frac{2 \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt [3]{a}}}{\sqrt{3}}\right )}{a^{4/3} d}-\frac{\sqrt{3} \tan ^{-1}\left (\frac{1+\frac{2^{2/3} \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt [3]{a}}}{\sqrt{3}}\right )}{4 \sqrt [3]{2} a^{4/3} d}-\frac{\log (\cos (c+d x))}{8 \sqrt [3]{2} a^{4/3} d}-\frac{\log (\tan (c+d x))}{2 a^{4/3} d}+\frac{3 \log \left (\sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 a^{4/3} d}-\frac{3 \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{8 \sqrt [3]{2} a^{4/3} d}+\frac{3}{8 d (a+i a \tan (c+d x))^{4/3}}+\frac{9}{4 a d \sqrt [3]{a+i a \tan (c+d x)}}\\ \end{align*}
Mathematica [C] time = 1.43467, size = 189, normalized size = 0.6 \[ -\frac{3 i \sec ^2(c+d x) \left (\, _2F_1\left (\frac{2}{3},1;\frac{5}{3};\frac{e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}\right ) (\cos (2 (c+d x))+i \sin (2 (c+d x)))-8 \, _2F_1\left (\frac{2}{3},1;\frac{5}{3};\frac{2 e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}\right ) (\cos (2 (c+d x))+i \sin (2 (c+d x)))+6 i \sin (2 (c+d x))+7 \cos (2 (c+d x))+7\right )}{16 a d (\tan (c+d x)-i) \sqrt [3]{a+i a \tan (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.116, size = 0, normalized size = 0. \begin{align*} \int{\cot \left ( dx+c \right ) \left ( a+ia\tan \left ( dx+c \right ) \right ) ^{-{\frac{4}{3}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.07452, size = 1874, normalized size = 5.99 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot{\left (c + d x \right )}}{\left (a \left (i \tan{\left (c + d x \right )} + 1\right )\right )^{\frac{4}{3}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot \left (d x + c\right )}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac{4}{3}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]